package com.cyzy.util;

import java.util.Random;

/**
 * @author cuncun
 * @create 2025-05-20 下午7:19
 */
public class VerificationCodeUtil {


    //随机生成4位数
    public static String generateCode(){

        Random random = new Random();

        int code = random.nextInt(9000) + 1000;

        return String.valueOf(code);
    }
}
